<div class="titlewords" >个人好友</div>
<div class="photo_box">
<% @friends = @login_user.friends%>
<% if @friends%>
	<ul>
			<% @friends.each do |f| -%>
			<li>
				<a href="#">
					<%= link_to(image_tag(f.avatar.url, :class => "headphoto"),profile_for(f)) %><%= f.username%>
				</a>
			</li>
		<% end -%>
	</ul>
<% else %>
还没有好友
<% end %>	
</div>
<div class="morereg"><a href="#">更多好友</a></div>